﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="left.aspx.cs" Inherits="web.manage.left" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
    function ShowThis(id){
        var MenuList = document.getElementsByTagName("div");
        if(document.getElementById("sort_" + id)){
            if(document.getElementById("sort_" + id).style.display == "none"){
                document.getElementById("sort_" + id).style.display = "block";
                if(document.getElementById("sort_" + id + "_img_1")) document.getElementById("sort_" + id + "_img_1").src = "images/arrow1b.gif";
                if(document.getElementById("sort_" + id + "_img_2")) document.getElementById("sort_" + id + "_img_2").src = "images/minus.gif";
                if(document.getElementById("cate_sort_" + id)) document.getElementById("cate_sort_" + id).className = "cate1b";
            }else{
                document.getElementById("sort_" + id).style.display = "none";
                if(document.getElementById("sort_" + id + "_img_1")) document.getElementById("sort_" + id + "_img_1").src = "images/arrow1.gif";
                if(document.getElementById("sort_" + id + "_img_2")) document.getElementById("sort_" + id + "_img_2").src = "images/plus.gif";
                if(document.getElementById("cate_sort_" + id)) document.getElementById("cate_sort_" + id).className = "cate1";
            }
        }
        
        for(var j = 0 ; j < MenuList.length ; j++){
            if(MenuList[j].className == "sort" && MenuList[j].id != "sort_" + id){
                MenuList[j].style.display = "none";
                if(document.getElementById(MenuList[j].id + "_img_1")) document.getElementById(MenuList[j].id + "_img_1").src = "images/arrow1.gif";
                if(document.getElementById(MenuList[j].id + "_img_2")) document.getElementById(MenuList[j].id + "_img_2").src = "images/plus.gif";
                if(document.getElementById("cate_" + MenuList[j].id)) document.getElementById("cate_" + MenuList[j].id).className = "cate1";
            }
        }
        
        RecordID(id);
    }
    
    function FormatStatus(){
        if(document.getElementById("sort_" + defaultid)){
            document.getElementById("sort_" + defaultid).style.display = "block";
            document.getElementById("sort_" + defaultid + "_img_1").src = "images/arrow1b.gif";
            document.getElementById("sort_" + defaultid + "_img_2").src = "images/minus.gif";
            if(document.getElementById("cate_sort_" + defaultid)) document.getElementById("cate_sort_" + defaultid).className = "cate1b";
        }
    }
    
    function RecordID(id){
        if(document.getElementById("sid")) document.getElementById("sid").value = id;
    }    
    </script>
</head>
<body style="background-color: #F6F9FD;">
    <div style="text-align: center">
        <div>
            
                    <center>
                        <div id="cate_sort_31" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(31);">
                                    <img id="sort_31_img_1" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(31);">
                                        公告设置
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(31);">
                                    <img id="sort_31_img_2" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_31" class="sort" style="display: none;">
                            <ul>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="News_Manage.aspx" target="mainFrame">
                                                 公告管理
                                            </a></li>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="News_operate.aspx" target="mainFrame">
                                                公告添加
                                            </a></li>    
                            </ul>
                        </div>
                    </center>
                
                    <center>
                        <div id="cate_sort_65" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(65);">
                                    <img id="sort_65_img_1" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(65);">
                                        商品管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(65);">
                                    <img id="sort_65_img_2" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_65" class="sort" style="display: none;">
                            <ul>
                                
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="Product_ProductType_Manage.aspx" target="mainFrame">
                                                商品类型管理
                                            </a></li>
                         
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="Product_Product_Operate.aspx" target="mainFrame">
                                                添加新商品
                                            </a></li>
                                    
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="Product_Product_Manage.aspx" target="mainFrame">
                                                商品管理
                                            </a></li>
                            </ul>
                        </div>
                    </center>
                
                    
                
                    <center>
                        <div id="cate_sort_195" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(195);">
                                    <img id="sort_195_img_1" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(195);">
                                        订单管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(195);">
                                    <img id="sort_195_img_2" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_195" class="sort" style="display: none;">
                            <ul>                                
                                <li>
                                    <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                    <a href="sendmessage_Manage.aspx" target="mainFrame">
                                        发货信息管理
                                    </a></li>
                                <li>
                                    <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                    <a href="sendmessage_operate.aspx" target="mainFrame">
                                         添加发货信息
                                    </a></li>
                                <li>
                                    <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                    <a href="Order_Manage.aspx" target="mainFrame">
                                        订单管理
                                    </a></li>
                                <li>
                                    <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                    <a href="member_Manage.aspx" target="mainFrame">
                                        经销商管理
                                    </a></li>
                                <li>
                                    <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                    <a href="member_operate.aspx" target="mainFrame">
                                        经销商添加
                                    </a></li>
                            </ul>
                        </div>
                    </center>
<% if (role == 0)
   { %>
                    <center>
                        <div id="cate_sort_26" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(26);">
                                    <img id="sort_26_img_1" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(26);">
                                        权限管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(26);">
                                    <img id="sort_26_img_2" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_26" class="sort" style="display: none;">
                            <ul>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="admin_manage.aspx" target="mainFrame">
                                                操作员管理
                                            </a></li>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="admin_operate.aspx" target="mainFrame">
                                                操作员添加
                                            </a></li>
                            </ul>
                        </div>
                    </center>
 <%} %>                   
                    <center>
                        <div id="cate_sort_27" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(27);">
                                    <img id="Img1" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(27);">
                                        首页广告管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(27);">
                                    <img id="Img2" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_27" class="sort" style="display: none;">
                            <ul>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="flashad_manage.aspx" target="mainFrame">
                                                flash广告管理
                                            </a></li>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="flashad_operate.aspx" target="mainFrame">
                                                flash广告添加
                                            </a></li>
                            </ul>
                        </div>
                    </center>
                    
                    <center>
                        <div id="cate_sort_28" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(28);">
                                    <img id="Img3" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(28);">
                                        qq客服号码管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(28);">
                                    <img id="Img4" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_28" class="sort" style="display: none;">
                            <ul>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="qqonline_manage.aspx" target="mainFrame">
                                                号码管理
                                            </a></li>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="qqonline_operate.aspx" target="mainFrame">
                                                号码添加
                                            </a></li>
                            </ul>
                        </div>
                    </center>
                    
                    <center>
                        <div id="cate_sort_29" class="cate1">
                            <div class="cate2">
                                <a href="javascript:ShowThis(29);">
                                    <img id="Img5" src="images/arrow1.gif" alt="" /></a> <a href="javascript:ShowThis(29);">
                                        留言管理
                                    </a>
                            </div>
                            <div class="cate3">
                                <a href="javascript:ShowThis(29);">
                                    <img id="Img6" src="images/plus.gif" style="cursor: pointer;" alt="" /></a>
                            </div>
                        </div>
                        <div id="sort_29" class="sort" style="display: none;">
                            <ul>
                                        <li>
                                            <img src="images/arrow2.gif" style="vertical-align: middle" alt="" />
                                            <a href="leaveword_manage.aspx" target="mainFrame">
                                                留言管理(查看与回复)
                                            </a></li>
                            </ul>
                        </div>
                    </center>
                
        </div>
        <div class="kuaijie">
        </div>
    </div>
    <input type="hidden" id="sid" value="54" />
    <script language="javascript" type="text/javascript">
    var defaultid = 54;
    FormatStatus()
    RecordID(defaultid);
    </script>
</body>
</html>
